package com.yuan.fullstackback.model.userRequest;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户注册请求对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserEntityBody {

    /**
     * 用户Id
     */
    private String userId;

    /**
     * 用户账号[建议使用邮箱做账号]
     */
    @Size(min = 5, max = 50, message = "账号长度5-50个字符")
    @Email
    private String userName;

    /**
     * 密码
     */
    @Size(min = 5, max = 50, message = "密码长度5-50个字符")
    private String password;

    /**
     * 用户昵称
     */
    private String nickName;

    /**
     * 手机号码
     */
    private String phonenumber;

    /**
     * 用户性别
     */
    private String sex;

    /**
     * 用户头像
     */
    private String avatar;

    /**
     * 备注
     */
    private String remark;
}
